package artibella.ui.forms 
{
	import flash.events.MouseEvent;
	import flash.display.MovieClip;
	
	/**
	 * ...
	 * @author 
	 */
	
	public class CheckButton extends ACheckButton
	{
		private var _toggle:MovieClip;
		
		public function CheckButton( b:Boolean = false ) 
		{
			super( b );
		}
		
		override protected function _init():void
		{
			_toggle = new Toggle_FC();
			_toggle.gotoAndStop( _selected ? 2 : 1 );
			addChild( _toggle );
			
			super._init();
		}
		
		// - - -
		
		override protected function _doClick( e:MouseEvent ):void
		{
			super._doClick( e )
			
			_toggle.gotoAndStop( _selected ? 2 : 1 );
		}
	}
}